package com.zxr.demo.commom.bo;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import java.io.Serializable;

public class AddUserBO implements Serializable {

    //名称
    @NotBlank(message = "此账号不能为空")
    private String name;
    //密码
    private String pwd;
    //性别
    private Integer sex;
    //年龄
    @Min(0)
    @Max(150)
    private Integer age;

    public AddUserBO() {
    }

    public AddUserBO(String name, String pwd, Integer sex, Integer age) {
        this.name = name;
        this.pwd = pwd;
        this.sex = sex;
        this.age = age;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
